package com.pzcnet.model;

import lombok.Data;

/**
 * Created by xdkxlk on 2017/9/10.
 */
@Data
public class EventProcess extends Event {

    public enum EventProcessStatus {
        NEW,
        PROCESSED,
        ERROR
    }

    public EventProcess() {
    }

    public EventProcess(Event event) {
        this.setId(event.getId());
        this.setEventType(event.getEventType());
        this.setPayload(event.getPayload());
        this.setEventStatus(EventProcessStatus.NEW.toString());
    }

    private Integer publishId;
    private String eventStatus;

}
